package com.czk.model.adaptor.classadaptor;

/**
 * 类适配器
 * 违反迪米特法则
 */
public class ViltageAdaptor extends Voltage220 implements Voltage5 {
    @Override
    public int output5() {
        //得到220v电压
        int output = output();
        // 转成5v
        int i=output/44;
        return i;
    }
}
